#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "ds18b20.h"
#include "myusart.h"

int main(void)
{
	MYUSART_Init();
	float temp;
	while (1)
	{
		if(DS18B20_ReadData(&temp)){
			MYUSART_SendFloatNumber(temp,1);
		}else{
			MYUSART_SendString("Read error\r\n");
		}
		Delay_ms(1000);
	}
}
